package com.leyou.dao.db2;

import com.leyou.domain.db1entity.ConditionAndGoods;
import com.leyou.domain.db3entity.LeyouCoupons;
import com.leyou.domain.db3entity.Prscard;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface Db2Mapper {

    String getCardNumByUserId(String userId);


    Integer sendLeyouCoupons(LeyouCoupons leyouCoupons);


    Integer getTotalCostInItemListByUserId(@Param("list") List<ConditionAndGoods> list,
                                           @Param("userId") Integer userId,
                                           @Param("begintime") Date begintime,
                                           @Param("endtime") Date endtime);

    Prscard selectUser(@Param("username") String username, @Param("password") String password);

    Integer addUserPonits(@Param("idcard") String idcard, @Param("points") Integer points);
}
